package creationPattern.Factory.Factory_02.service.impl;

import creationPattern.Factory.Factory_02.entity.AwardInfo;
import creationPattern.Factory.Factory_02.entity.ResponseResult;
import creationPattern.Factory.Factory_02.service.IFreeGoods;

/**
 * 打折券服务
 */
public class DiscountService implements IFreeGoods {

    /**
     * 发奖品
     * @return
     */
    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        System.out.println("向用户发送一张打折券" + awardInfo.getuId() + "-----" + awardInfo.getAwardNumber());

        return new ResponseResult("200","发放打折券成功");
    }
}
